package com.mszlu.news.service;

import com.mszlu.news.vo.Result;
import com.mszlu.news.vo.params.CollectParam;

public interface GoodService {

    /**
     * 点赞列表
     * @param userId
     * @return
     */
    Result listGoodByUserId(Long userId);
    /**
     * 添加点赞
     * @param collectParam
     * @return
     */
    Result addGood(CollectParam collectParam);

    /**
     * 取消点赞
     * @param collectParam
     * @return
     */
    Result deleteGood(CollectParam collectParam);

    /**
     * 通过查询多少条相同的文章id查询文章点赞数
     * @param articleId
     * @return
     */
    Result GoodCounts(Long articleId);

    Result GoodCounts1(Long userId);
}
